package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * 规格值
 * 
 * @author yerly
 *
 */
@Entity
public class SpecValue {
	@Id
	private Long id;
	@ManyToOne
	private Spec spec;
	private String value;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Spec getSpec() {
		return spec;
	}

	public void setSpec(Spec spec) {
		this.spec = spec;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "SpecValue [id=" + id + ", spec=" + spec + ", value=" + value
				+ ", disabled=" + disabled + "]";
	}

}
